********PSRM Replication File **************************************************
********Title: Coup-Proofing: Latent Concept and Measurement********************
********Date: 12/13/2023********************************************************
********Hwalmin Jin / Korea Military Academy / jymh33@gmail.com ****************

** Processor:	11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz   3.00 GHz
** Installed RAM:	16.0 GB 
** System type:	64-bit operating system, x64-based processor
** Edition:	Windows 10 Enterprise
** Version:	21H2
** OS build:	19044.3086
** Stata version: 17.0 (SE)


******* Note: The figures in the manuscript were manually customized after saving the stata figures in .gph format. 


log using "psrm_irt_logfile_Stata.log", replace

 
use psrm_irt_replication_1312, clear
 
 

***** Figure 2 
ssc install estout, replace 

eststo clear

summarize mean_coup_proofing


*** customized file name: mean_coup_proofing_figure2.gph

histogram mean_coup_proofing,  freq kdensity      


gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(width(vvthin))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(%70)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit yaxis1.title.DragBy -.1604484212476733 -.9626905274862156
gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Levels of Coup-Proofing
gr_edit xaxis1.title.DragBy -.9626905274862195 .3208968424954091
gr_edit plotregion1.AddTextBox added_text editor 660.516289930005 -1.53693630770168
gr_edit plotregion1.added_text[1].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].text = {}
gr_edit plotregion1.added_text[1].text.Arrpush Mean: -0.002 SD: 0.548
gr_edit plotregion1.AddTextBox added_text editor 650.9765303588255 -1.332280592627235
gr_edit plotregion1.added_text[2].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].style.editstyle size(14-pt) editcopy
gr_edit plotregion1.added_text[1].DragBy -19.07951914235879 -.3152804259254981


graph save mean_coup_proofing_figure2, replace


***** Figure 3
***** (a) GWF Military Regime

summarize mean_coup_proofing if gwf_military==1


*** customized file name: mean_coup_proofing_figure3_gwfmilitary.gph

histogram mean_coup_proofing if gwf_military==1,  freq kdensity    


gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Overall Level of Coup-Proofing
gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(khaki))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(width(vvthin))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit xaxis1.title.DragBy -.7948225260652114 .1324704210108674
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(%70)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.AddTextBox added_text editor 52.0058207523569 -1.803810429514898
gr_edit plotregion1.added_text[1].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.AddTextBox added_text editor 45.79997202717263 -.9224309594053191
gr_edit plotregion1.added_text[2].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].style.editstyle size(14-pt) editcopy
gr_edit plotregion1.added_text[1].text = {}
gr_edit plotregion1.added_text[1].text.Arrpush Mean: -0.391 SD: 0.593
gr_edit plotregion1.AddTextBox added_text editor 52.70648109229707 -1.242102269807757
gr_edit plotregion1.added_text[3].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].DragBy 0 -.2466035823104518
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten40))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Levels of Coup-Proofing

graph save mean_coup_proofing_figure3_gwfmilitary, replace


***** (b) GWF Party Regime 

summarize mean_coup_proofing if gwf_party==1


*** customized file name: mean_coup_proofing_figure3_gwfparty.gph


histogram mean_coup_proofing if gwf_party==1,  freq kdensity      


gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(width(vvthin))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(%70)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Overall Level of Coup-Proofing
gr_edit xaxis1.title.DragBy -.9272929470760791 0
gr_edit plotregion1.AddTextBox added_text editor 160.3373652123435 -1.317653484185464
gr_edit plotregion1.added_text[1].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].style.editstyle size(14-pt) editcopy
gr_edit plotregion1.added_text[1].text = {}
gr_edit plotregion1.added_text[1].text.Arrpush Mean: -0.051 SD: 0.515
gr_edit plotregion1.AddTextBox added_text editor 156.0710493251201 -1.051193445795404
gr_edit plotregion1.added_text[2].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].DragBy -1.969068871026225 -.1752394847069769
gr_edit plotregion1.added_text[1].DragBy 0 .0360081132959541
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(40))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten40))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Levels of Coup-Proofing



graph save mean_coup_proofing_figure3_gwfparty, replace



***** (c) GWF Personal Regime 

summarize mean_coup_proofing if gwf_personal==1



*** customized file name: mean_coup_proofing_figure3_gwfpersonal.gph

histogram mean_coup_proofing if gwf_personal==1,  freq kdensity  


gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Overall Level of Coup-Proofing
gr_edit xaxis1.title.DragBy -1.059763368086945 -.1324704210108753
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten40))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(width(vvthin))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(%70)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.AddTextBox added_text editor 72.60190373035742 -1.552640114198697
gr_edit plotregion1.added_text[1].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].style.editstyle size(14-pt) editcopy
gr_edit plotregion1.added_text[1].text = {}
gr_edit plotregion1.added_text[1].text.Arrpush Mean: -0.115 SD: 0.688
gr_edit plotregion1.added_text[1].DragBy -8.279934602665218 -.3653386404599288
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%70"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten40))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Levels of Coup-Proofing


graph save mean_coup_proofing_figure3_gwfpersonal, replace


***** (d) GWF Monarchy Regime 

summarize mean_coup_proofing if gwf_monarchy==1


*** customized file name: mean_coup_proofing_figure3_gwfmonarchy.gph

histogram mean_coup_proofing if gwf_monarchy==1,  freq kdensity      


gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Overall Level of Coup-Proofing
gr_edit xaxis1.title.DragBy -1.05976336808695 0
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color("%40"))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(intensity(inten70))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot1.style.editstyle area(linestyle(width(vvthin))) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(%70)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(black)) editcopy
gr_edit plotregion1.AddTextBox added_text editor 63.34731853652694 -.9340144175067988
gr_edit plotregion1.added_text[1].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].style.editstyle size(14-pt) editcopy
gr_edit plotregion1.added_text[1].text = {}
gr_edit plotregion1.added_text[1].text.Arrpush Mean: 0.209 SD: 0.317
gr_edit plotregion1.AddTextBox added_text editor 62.29714847197961 -.6454623944925595
gr_edit plotregion1.added_text[2].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].DragBy -18.90306116185156 -.0260739779832144
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Levels of Coup-Proofing


graph save mean_coup_proofing_figure3_gwfmonarchy, replace



******* Figure 4: The levels of coup-proofing in Pakistan and Mexico between 1965 and 2005

****Figure 4(a) Paskistan 

*** customized file name: mean_coup_proofing_figure4_pakistan.gph


twoway line  mean_coup_proofing lower_mean_coup_proofing upper_mean_coup_proofing   year if ccode ==770, xlabel(1965(1)2005) ylabel(-1.5(0.5)2.5)  


gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit legend.draw_view.setstyle, style(no)
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush Year
gr_edit xaxis1.reset_rule 5, tickset(major) ruletype(suggest) 
gr_edit xaxis1.reset_rule 10, tickset(major) ruletype(suggest) 
gr_edit xaxis1.reset_rule 10, tickset(major) ruletype(suggest) 
gr_edit xaxis1.title.DragBy -1.059763368086946 0
gr_edit xaxis1.style.editstyle majorstyle(tickstyle(textstyle(size(small)))) editcopy
gr_edit yaxis1.title.text = {}
gr_edit yaxis1.title.text.Arrpush The Levels of Coup-Proofing Effort
gr_edit yaxis1.title.DragBy 0 -1.457174631119554
gr_edit yaxis1.style.editstyle majorstyle(tickstyle(textstyle(size(small)))) editcopy
gr_edit plotregion1.plot3._set_type area
gr_edit plotregion1.plot3.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(linestyle(color("%15"))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(shadestyle(color("%15"))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(linestyle(pattern(dot))) editcopy
gr_edit plotregion1.plot2._set_type area
gr_edit plotregion1.plot2.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(color("%15"))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(shadestyle(color("%15"))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(pattern(dot))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.AddLine added_lines editor 1964.555514207676 -.9899661450369167 1968.686490446728 -.9899661450369167
gr_edit plotregion1.added_lines[1].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(solid)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle headpos(head) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(dot)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(dash)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(dash)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle headstyle(size(medium)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(solid)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(dash)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[1].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.AddLine added_lines editor 1969.185839222877 -.9899661450369167 1971.455606387191 -.9899661450369167
gr_edit plotregion1.added_lines[2].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1972.000350506627 -.982984216285262 1977.039233611404 -.982984216285262
gr_edit plotregion1.added_lines[3].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1977.58397773084 -.9899661450369167 1987.707139283681 -.9899661450369167
gr_edit plotregion1.added_lines[4].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1988.433464776261 -.9899661450369167 1999.509928538114 -.9969480737885712
gr_edit plotregion1.added_lines[5].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1999.873091284405 -.9899661450369167 2005.275137135473 -.9899661450369167
gr_edit plotregion1.added_lines[6].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[3].drag_point = (.)
gr_edit plotregion1.added_lines[3].DragBy -.0069819287516547 -.1361860298588497
gr_edit plotregion1.added_lines[5].drag_point = (.)
gr_edit plotregion1.added_lines[5].DragBy .0069819287516545 -.0907906865725558
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headpos(head) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(backsize(medsmall)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(size(medium)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(backsize(zero)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.added_lines[5].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[5].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[5].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[5].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[5].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[5].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[5].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle headpos(tail) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.added_lines[2].Delete
gr_edit plotregion1.AddLine added_lines editor 1968.958862506446 -.9899661450369167 1971.546397073764 -.9899661450369167
gr_edit plotregion1.added_lines[7].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[7].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[7].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[7].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[7].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[7].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[7].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[7].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.added_lines[4].Delete
gr_edit plotregion1.AddLine added_lines editor 1977.311605671122 -.982984216285262 1987.934116000112 -.982984216285262
gr_edit plotregion1.added_lines[8].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle linestyle(pattern(vshortdash)) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.AddTextBox added_text editor -1.143568577573318 1965.281839700257
gr_edit plotregion1.added_text[1].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].text = {}
gr_edit plotregion1.added_text[1].text.Arrpush Ayub Khan
gr_edit plotregion1.added_text[1].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[1].DragBy -.0069819287516547 -.6355348060079709
gr_edit plotregion1.AddTextBox added_text editor -.7735263537356244 1969.730583342312
gr_edit plotregion1.added_text[2].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[2].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[2].text = {}
gr_edit plotregion1.added_text[2].text.Arrpush Yahya Khan
gr_edit plotregion1.added_text[2].DragBy -.0349096437582728 -1.407255641874792
gr_edit plotregion1.AddTextBox added_text editor -1.150550506324972 1973.54379217836
gr_edit plotregion1.added_text[3].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[3].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[3].text = {}
gr_edit plotregion1.added_text[3].text.Arrpush Zulfiqar Ali Bhutto
gr_edit plotregion1.added_text[3].DragBy -.0209457862549636 -1.861209074737626
gr_edit plotregion1.added_text[3].DragBy .0069819287516547 -.0453953432862832
gr_edit plotregion1.AddTextBox added_text editor -1.066767361305117 1980.307698328017
gr_edit plotregion1.added_text[4].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[4].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[4].text = {}
gr_edit plotregion1.added_text[4].text.Arrpush Muhammad Zia-ul-Haq
gr_edit plotregion1.added_text[4].DragBy -.1047289312748186 -1.634232358306218
gr_edit plotregion1.added_text[4].DragBy .0069819287516549 0
gr_edit plotregion1.AddTextBox added_text editor -1.171496292579936 1992.246673612309
gr_edit plotregion1.added_text[5].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.AddTextBox added_text editor -1.1924420788349 1992.836813075031
gr_edit plotregion1.added_text[6].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[6].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[6].text = {}
gr_edit plotregion1.added_text[6].text.Arrpush Benazir Bhutto & Nawaz Sharif
gr_edit plotregion1.added_text[6].DragBy .0139638575033092 -3.994790209192961
gr_edit plotregion1.added_text[6].DragBy .013963857503309 0
gr_edit plotregion1.AddTextBox added_text editor -1.199424007586555 2000.554021433699
gr_edit plotregion1.added_text[7].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[7].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[7].text = {}
gr_edit plotregion1.added_text[7].text.Arrpush Pervez Musharraf
gr_edit plotregion1.added_text[7].DragBy .0279277150066185 -.3631627462902606
gr_edit yaxis1.title.text = {}
gr_edit yaxis1.title.text.Arrpush The Levels of Coup-Proofing



graph save mean_coup_proofing_figure4_pakistan, replace

 
****Figure 4(b) Mexico

*** customized file name: mean_coup_proofing_figure4_mexico.gph


twoway line  mean_coup_proofing lower_mean_coup_proofing upper_mean_coup_proofing  year if ccode ==70, xlabel(1965(5)2005) ylabel(-1.5(0.5)2.5)  




gr_edit plotregion1.plot3._set_type area
gr_edit plotregion1.plot3.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(linestyle(color("%15"))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(shadestyle(color("%15"))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot3.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot2._set_type area
gr_edit plotregion1.plot2.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(color("%15"))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(shadestyle(color("%15"))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(shadestyle(color(gray))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(color(gray))) editcopy
gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit legend.draw_view.setstyle, style(no)
gr_edit plotregion1.plot3.style.editstyle area(linestyle(pattern(dot))) editcopy
gr_edit plotregion1.plot2.style.editstyle area(linestyle(pattern(dot))) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush Year
gr_edit xaxis1.title.DragBy -1.444035791229329 5.134349479926512
gr_edit yaxis1.title.text = {}
gr_edit yaxis1.title.text.Arrpush The Levels of Coup-Proofing
gr_edit yaxis1.title.DragBy 0 -2.085829476220139
gr_edit yaxis1.title.DragBy -1.444035791229333 1.283587369981623
gr_edit yaxis1.title.DragBy .6417936849908027 .4813452637431067
gr_edit yaxis1.title.DragBy -.1604484212477202 -.1604484212477055
gr_edit yaxis1.title.DragBy 0 -.1604484212477006
gr_edit yaxis1.title.DragBy .4813452637431291 -1.283587369981626
gr_edit plotregion1.AddLine added_lines editor 1965.371585555218 -1.003782007651276 1969.077513368728 -1.003782007651276
gr_edit plotregion1.added_lines[1].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[1].drag_point = (.)
gr_edit plotregion1.added_lines[1].DragBy -.0081725091937281 -.3871864879786816
gr_edit plotregion1.added_lines[1].Delete
gr_edit plotregion1.AddLine added_lines editor 1964.873774356388 -1.011954516845004 1969.29876279043 -1.011954516845004
gr_edit plotregion1.added_lines[2].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1970.017823410962 -1.011954516845004 1975.161872465536 -1.011954516845004
gr_edit plotregion1.added_lines[3].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1975.880933086068 -1.011954516845004 1980.582483297238 -1.011954516845004
gr_edit plotregion1.added_lines[4].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1981.41216862862 -1.003782007651276 1988.436837767662 -1.003782007651276
gr_edit plotregion1.added_lines[5].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1989.045273677343 -.9956094984575484 1993.414949755959 -.9956094984575484
gr_edit plotregion1.added_lines[6].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1994.078698021066 -.9874369892638201 1999.333371786491 -.9874369892638201
gr_edit plotregion1.added_lines[7].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 2000.32899418415 -.9874369892638201 2004.809294973618 -.9874369892638201
gr_edit plotregion1.added_lines[8].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headpos(head) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(solid)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(fillcolor("%70")) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(linestyle(color("%70"))) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(solid)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(fillcolor(black)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle headstyle(linestyle(color(black))) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(dash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[2].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[3].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[4].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[2].Delete
gr_edit plotregion1.AddLine added_lines editor 1965.150336133516 -1.003782007651276 1969.79657398926 -1.003782007651276
gr_edit plotregion1.added_lines[9].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[9].style.editstyle headpos(head) editcopy
gr_edit plotregion1.added_lines[9].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[9].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[9].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[9].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[9].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[9].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[3].Delete
gr_edit plotregion1.AddLine added_lines editor 1970.183760477238 -1.003782007651276 1975.714996019791 -1.003782007651276
gr_edit plotregion1.added_lines[10].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[10].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[10].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[10].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[10].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[10].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[10].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[10].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[5].Delete
gr_edit plotregion1.added_lines[4].Delete
gr_edit plotregion1.AddLine added_lines editor 1976.434056640323 -.9956094984575484 1981.522793339471 -.9956094984575484
gr_edit plotregion1.added_lines[11].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.AddLine added_lines editor 1982.241853960003 -.9956094984575484 1988.326213056811 -.9956094984575484
gr_edit plotregion1.added_lines[12].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[11].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[11].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[11].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[11].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[11].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[11].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[11].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[12].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[12].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[12].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[12].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[6].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[7].Delete
gr_edit plotregion1.AddLine added_lines editor 1993.968073310215 -.9874369892638201 1999.665245919044 -.9874369892638201
gr_edit plotregion1.added_lines[13].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[13].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[13].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[13].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[13].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[13].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[13].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[13].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle headpos(tail) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[8].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[11].Delete
gr_edit plotregion1.AddLine added_lines editor 1976.046870152344 -.9956094984575484 1982.020604538301 -.9956094984575484
gr_edit plotregion1.added_lines[14].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.52778) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(neither) editcopy
gr_edit plotregion1.added_lines[14].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[14].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[14].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[14].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[14].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[14].style.editstyle headpos(both) editcopy
gr_edit plotregion1.added_lines[6].Delete
gr_edit plotregion1.AddLine added_lines editor 1988.658087189364 -.9792644800700923 1993.580886822236 -.9792644800700923
gr_edit plotregion1.added_lines[15].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.25) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(both) editcopy
gr_edit plotregion1.added_lines[15].drag_point = (.)
gr_edit plotregion1.added_lines[15].DragBy -.0163450183874559 .0553123554255185
gr_edit plotregion1.added_lines[15].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[15].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[15].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[15].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[15].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[13].Delete
gr_edit plotregion1.AddLine added_lines editor 1994.078698021066 -.9956094984575484 2000.052432407023 -.9956094984575484
gr_edit plotregion1.added_lines[16].style.editstyle  linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) headstyle( symbol(circle) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) fillcolor(black) size( sztype(relative) val(1.25) allow_pct(1)) angle(stdarrow) symangle(zero) backsymbol(none) backline( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) backcolor(black) backsize( sztype(relative) val(0) allow_pct(1)) backangle(stdarrow) backsymangle(zero)) headpos(both) editcopy
gr_edit plotregion1.added_lines[16].style.editstyle headstyle(size(medsmall)) editcopy
gr_edit plotregion1.added_lines[16].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[16].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.added_lines[16].style.editstyle linestyle(color(black)) editcopy
gr_edit plotregion1.added_lines[16].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1.added_lines[16].style.editstyle linestyle(pattern(shortdash)) editcopy
gr_edit plotregion1.AddTextBox added_text editor -1.199922228300748 1965.371585555218
gr_edit plotregion1.added_text[1].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[1].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[1].text = {}
gr_edit plotregion1.added_text[1].text.Arrpush Gustavo Díaz
gr_edit plotregion1.AddTextBox added_text editor -1.191749719107019 1967.252205639686
gr_edit plotregion1.added_text[2].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[2].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[2].text = {}
gr_edit plotregion1.added_text[2].text.Arrpush Luis Echeverría
gr_edit plotregion1.added_text[1].DragBy .0326900367749122 -.3318741325531551
gr_edit plotregion1.added_text[2].DragBy .0163450183874559 2.931554837552878
gr_edit plotregion1.added_text[2].DragBy 0 .2765617771276299
gr_edit plotregion1.AddTextBox added_text editor -1.167232191525835 1978.923112634472
gr_edit plotregion1.added_text[3].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[3].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[3].text = {}
gr_edit plotregion1.added_text[3].text.Arrpush José López
gr_edit plotregion1.added_text[3].DragBy -.0163450183874559 -2.433743638723143
gr_edit plotregion1.added_text[3].DragBy .0081725091937279 .3871864879786857
gr_edit plotregion1.AddTextBox added_text editor -1.240784774269387 1984.786222309577
gr_edit plotregion1.added_text[4].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[4].text = {}
gr_edit plotregion1.added_text[4].text.Arrpush Miguel de la Madrid
gr_edit plotregion1.added_text[4].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[4].DragBy .0653800735498234 -2.544368349574198
gr_edit plotregion1.added_text[4].DragBy 0 -.2765617771276326
gr_edit plotregion1.AddTextBox added_text editor -1.314337357012939 1992.308702647449
gr_edit plotregion1.added_text[5].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[5].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[5].text = {}
gr_edit plotregion1.added_text[5].text.Arrpush Carlos Salinas
gr_edit plotregion1.added_text[5].DragBy .1389326562933755 -3.429366036382602
gr_edit plotregion1.AddTextBox added_text editor -1.404234958143947 1998.005875256278
gr_edit plotregion1.added_text[6].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[6].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[6].text = {}
gr_edit plotregion1.added_text[6].text.Arrpush Ernesto Zedillo
gr_edit plotregion1.added_text[6].DragBy .2288302574243833 -3.595303102659198
gr_edit plotregion1.AddTextBox added_text editor -1.281647320238027 2002.818050178299
gr_edit plotregion1.added_text[7].style.editstyle  angle(default) size( sztype(relative) val(3.4722) allow_pct(1)) color(black) horizontal(left) vertical(middle) margin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) linegap( sztype(relative) val(0) allow_pct(1)) drawbox(no) boxmargin( gleft( sztype(relative) val(0) allow_pct(1)) gright( sztype(relative) val(0) allow_pct(1)) gtop( sztype(relative) val(0) allow_pct(1)) gbottom( sztype(relative) val(0) allow_pct(1))) fillcolor(bluishgray) linestyle( width( sztype(relative) val(.2) allow_pct(1)) color(black) pattern(solid) align(inside)) box_alignment(east) editcopy
gr_edit plotregion1.added_text[7].style.editstyle size(6-pt) editcopy
gr_edit plotregion1.added_text[7].text = {}
gr_edit plotregion1.added_text[7].text.Arrpush Vicente Fox
gr_edit plotregion1.added_text[7].DragBy .1144151287121921 -2.157181861595526


graph save mean_coup_proofing_figure4_mexico, replace


**** Figure 5 (heatplot) 
 
 ssc install heatplot, replace
 ssc install palettes, replace
 ssc install colrspace, replace
  
  
pwcorr  mean_coup_proofing  xhatmean_gandhi  ccs_static, sig star(.05) obs //
   
matrix C = r(C) //
 
 
*** customized file name: heat_plot_extent_coup_proofing_figure5.gph
 

heatplot C, values(format(%9.3f)) color(hcl diverging, intensity(.6))  aspectratio(1) 
 


 gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
 gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
 gr_edit yaxis1.major.num_rule_ticks = 0
 gr_edit yaxis1.edit_tick 1 1 `"Extent of Coup-Proofing"', tickset(major)
 gr_edit yaxis1.major.num_rule_ticks = 0
 gr_edit yaxis1.edit_tick 1 1 `"Extent of Coup-Proofing"', tickset(major)
 gr_edit yaxis1.major.num_rule_ticks = 0
 gr_edit yaxis1.edit_tick 2 2 `"Power Consolidation"', tickset(major)
 gr_edit yaxis1.major.num_rule_ticks = 0
 gr_edit yaxis1.edit_tick 3 3 `"Civilian Control"', tickset(major)
 gr_edit yaxis1.major.num_rule_ticks = 0
 gr_edit yaxis1.edit_tick 3 3 `"Civilian Control"', tickset(major)
 gr_edit xaxis1.major.num_rule_ticks = 0
 gr_edit xaxis1.edit_tick 1 1 `"Extent of Coup-Proofing"', tickset(major)
 gr_edit xaxis1.major.num_rule_ticks = 0
 gr_edit xaxis1.edit_tick 1 1 `"Extent of Coup-Proofing"', tickset(major)
 gr_edit xaxis1.major.num_rule_ticks = 0
 gr_edit xaxis1.edit_tick 2 2 `"Power Consolidation"', tickset(major)
 gr_edit xaxis1.major.num_rule_ticks = 0
 gr_edit xaxis1.edit_tick 3 3 `"Civilian Control"', tickset(major)
 gr_edit xaxis1.style.editstyle majorstyle(tickangle(forty_five)) editcopy
 gr_edit yaxis1.style.editstyle majorstyle(tickangle(default)) editcopy
 gr_edit yaxis1.style.editstyle majorstyle(tickangle(zero)) editcopy
 gr_edit yaxis1.style.editstyle majorstyle(tickangle(horizontal)) editcopy
 gr_edit yaxis1.style.editstyle majorstyle(tickangle(vertical)) editcopy
 gr_edit yaxis1.style.editstyle majorstyle(tickangle(forty_five)) editcopy
 gr_edit yaxis1.style.editstyle majorstyle(tickangle(default)) editcopy
 gr_edit legend.subtitle.text = {}
 gr_edit legend.subtitle.text.Arrpush Pearson's r
 gr_edit legend.subtitle.style.editstyle size(small) editcopy


 
 graph save heat_plot_extent_coup_proofing_figure5, replace

 
***** Figure 6: Coup-proofing, civilian control, and consolidation of power

*** customized file name: coup_proofing_and_civilian_control_figure6_left.gph

twoway scatter ccs_static   mean_coup_proofing || lfit ccs_static mean_coup_proofing , xline(0)

 gr_edit legend.draw_view.setstyle, style(no)
 gr_edit xaxis1.title.text = {}
 gr_edit xaxis1.title.text.Arrpush The Level of Coup-Proofing
 gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
 gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
 gr_edit plotregion1._xylines[1].style.editstyle linestyle(color(%70)) editcopy
 gr_edit plotregion1._xylines[1].style.editstyle linestyle(pattern(dash)) editcopy
 gr_edit plotregion1._xylines[1].style.editstyle linestyle(color(cranberry)) editcopy
 gr_edit xaxis1.title.DragBy -.9272929470760791 .2649408420217036
 gr_edit plotregion1.plot2.style.editstyle line(color(%70)) editcopy
 gr_edit plotregion1.plot2.style.editstyle line(width(thick)) editcopy
 gr_edit plotregion1.plot2.style.editstyle line(color(maroon)) editcopy
 gr_edit plotregion1.plot2.style.editstyle line(color(%100)) editcopy
 gr_edit plotregion1.plot2.style.editstyle line(color(maroon)) editcopy
 gr_edit plotregion1.plot1.style.editstyle marker(fillcolor(%40)) editcopy
 gr_edit plotregion1.plot1.style.editstyle marker(linestyle(color(%40))) editcopy
 gr_edit plotregion1.plot1.style.editstyle marker(fillcolor(navy)) editcopy
 gr_edit plotregion1.plot1.style.editstyle marker(linestyle(color(navy))) editcopy
 gr_edit xaxis1.title.style.editstyle size(large) editcopy
 gr_edit yaxis1.title.style.editstyle size(large) editcopy
 gr_edit yaxis1.title.text = {}
 gr_edit yaxis1.title.text.Arrpush Civilian Control (Kenwick)
 gr_edit yaxis1.title.text = {}
 gr_edit yaxis1.title.text.Arrpush Civilian Control (Kenwick)
 gr_edit xaxis1.title.text = {}
 gr_edit xaxis1.title.text.Arrpush The Levels of Coup-Proofing

 
graph save coup_proofing_and_civilian_control_figure6_left, replace
 
 
 
 
*** customized file name: coup_proofing_and_power_consolidation_figure6_right.gph


twoway scatter xhatmean_gandhi   mean_coup_proofing || lfit xhatmean_gandhi  mean_coup_proofing , xline(0)
 
 
gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit legend.draw_view.setstyle, style(no)
gr_edit xaxis1.title.style.editstyle size(large) editcopy
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Level of Coup-Proofing
gr_edit xaxis1.title.DragBy -1.05976336808695 .2649408420217427
gr_edit yaxis1.title.style.editstyle size(large) editcopy
gr_edit yaxis1.title.text = {}
gr_edit yaxis1.title.text.Arrpush Consolidation (Gandhi and Sumner)
gr_edit yaxis1.title.text = {}
gr_edit yaxis1.title.text.Arrpush Consolidation (Gandhi and Sumner)
gr_edit xaxis1.reset_rule -2 2.5 0.5 , tickset(major) ruletype(range) 
gr_edit xaxis1.reset_rule -2 2.5 0.5 , tickset(major) ruletype(range) 
gr_edit plotregion1.plot1.style.editstyle marker(fillcolor(%40)) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(linestyle(color(%40))) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(fillcolor(navy)) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(linestyle(color(navy))) editcopy
gr_edit plotregion1._xylines[1].style.editstyle linestyle(color(%70)) editcopy
gr_edit plotregion1._xylines[1].style.editstyle linestyle(pattern(dash)) editcopy
gr_edit plotregion1._xylines[1].style.editstyle linestyle(color(cranberry)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(width(thick)) editcopy
gr_edit xaxis1.reset_rule -2 2 0.5 , tickset(major) ruletype(range) 
gr_edit xaxis1.reset_rule -2 2 0.5 , tickset(major) ruletype(range) 
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush The Levels of Coup-Proofing

 
graph save coup_proofing_and_power_consolidation_figure6_right, replace





******** Table 2: The Effects of Coup-Proofing on Military Coups, 1965—2005

eststo clear


eststo: logit failcoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 , vce(cluster ccode)


eststo: logit succoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3  , vce(cluster ccode)


eststo: logit failcoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode , vce(cluster ccode)


eststo: logit succoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode  , vce(cluster ccode)


eststo: reg failcoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 , vce(cluster ccode)


eststo: reg succoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3  , vce(cluster ccode)


eststo: reg failcoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode , vce(cluster ccode)


eststo: reg succoup_any_powell mean_coup_proofing time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode  , vce(cluster ccode)


esttab using table2.tex, replace booktabs alignment(l) width(1.05\hsize) ///
b(a2) se scalars("N Obs." "ll Log Lik." ) ///
title(My Table) addn(name clusters) star(* 0.10 ** 0.05 *** 0.01) //

 
 
 
***** Figure 7: Coup-Proofing and Civilian Control (Guatemala)

 
keep if ccode ==90
 
order ccode year mean_coup_proofing  ccs_static
 
 
 
*** customized file name: guatemala_coup_proofing_civilian_control_figure7.gph

 
twoway line mean_coup_proofing  ccs_static year, xlabel(1965(1)2005) 
 

gr_edit xaxis1.style.editstyle majorstyle(tickstyle(textstyle(size(vsmall)))) editcopy
gr_edit xaxis1.style.editstyle majorstyle(tickangle(forty_five)) editcopy
gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit plotregion1.plot1.style.editstyle line(color(%80)) editcopy
gr_edit plotregion1.plot1.style.editstyle line(color(navy)) editcopy
gr_edit plotregion1.plot1._set_type connected
gr_edit plotregion1.plot1.style.editstyle marker(size(quarter_tiny)) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(size(small)) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(fillcolor(%40)) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(linestyle(color(%40))) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(fillcolor(navy)) editcopy
gr_edit plotregion1.plot1.style.editstyle marker(linestyle(color(navy))) editcopy
gr_edit plotregion1.plot1.style.editstyle line(width(medthick)) editcopy
gr_edit legend.plotregion1.label[1].text = {}
gr_edit legend.plotregion1.label[1].text.Arrpush Coup-Proofing
gr_edit legend.plotregion1.label[2].text = {}
gr_edit legend.plotregion1.label[2].text.Arrpush Civilian Control
gr_edit legend.style.editstyle boxstyle(linestyle(color(white))) editcopy
gr_edit legend.plotregion1.key[1].DragBy 6.491050629532558 -21.19526671958944
gr_edit legend.plotregion1.label[1].DragBy 6.491050629532558 -21.99008922157406
gr_edit legend.plotregion1.key[2].DragBy .3974112630326013 -64.91050432874266
gr_edit legend.plotregion1.key[2].DragBy .3974112630326042 .5298816679897356
gr_edit legend.plotregion1.label[2].DragBy .6623521050543438 -65.57285641372985
gr_edit legend.plotregion1.label[2].DragBy .5298816840434775 .2649408339948658
gr_edit xaxis1.title.text = {}
gr_edit xaxis1.title.text.Arrpush Year
gr_edit plotregion1.plot2._set_type connected
gr_edit plotregion1.plot2.style.editstyle marker(size(quarter_tiny)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(%80)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(width(medthick)) editcopy
gr_edit plotregion1.plot2.style.editstyle line(color(maroon)) editcopy
gr_edit plotregion1.plot2.style.editstyle marker(size(quarter_tiny)) editcopy
gr_edit plotregion1.plot2.style.editstyle marker(size(small)) editcopy
gr_edit plotregion1.plot2.style.editstyle marker(symbol(square)) editcopy
gr_edit plotregion1.plot2.style.editstyle marker(fillcolor(%40)) editcopy
gr_edit plotregion1.plot2.style.editstyle marker(linestyle(color(%40))) editcopy
gr_edit plotregion1.plot2.style.editstyle marker(fillcolor(maroon)) editcopy
gr_edit plotregion1.plot2.style.editstyle marker(linestyle(color(maroon))) editcopy


graph save guatemala_coup_proofing_civilian_control_figure7, replace






************** Appendix ********************************************************
********************************************************************************

use psrm_irt_replication_1312, clear


**** Figure 2 in Appendix :Correlations between coup-proofing and civilian control and power consolidation (Exclusion of Foreign, Justice, and Non-Security Cabinet Positions)

*** customized file name: heat_plot_extent_coup_proofing_exclude_figure2appendix.gph


pwcorr  mean_coup_proofing_exclude  xhatmean_gandhi  ccs_static, sig star(.05) obs //
   
matrix C = r(C) //
 
heatplot C, values(format(%9.3f)) color(hcl diverging, intensity(.6))  aspectratio(1) 

gr_edit xaxis1.style.editstyle majorstyle(tickangle(forty_five)) editcopy
gr_edit yaxis1.style.editstyle majorstyle(tickangle(rhorizontal)) editcopy
gr_edit yaxis1.style.editstyle majorstyle(tickangle(default)) editcopy
gr_edit yaxis1.major.num_rule_ticks = 0
gr_edit yaxis1.edit_tick 1 1 `"Extent of Coup-Proofing"', tickset(major)
gr_edit yaxis1.major.num_rule_ticks = 0
gr_edit yaxis1.edit_tick 2 2 `"Power Consolidation"', tickset(major)
gr_edit yaxis1.major.num_rule_ticks = 0
gr_edit yaxis1.edit_tick 3 3 `"Civilian Control"', tickset(major)
gr_edit yaxis1.reset_rule 5, tickset(major) ruletype(suggest) 
gr_edit yaxis1.reset_rule 3, tickset(major) ruletype(suggest) 
gr_edit yaxis1.reset_rule 4, tickset(major) ruletype(suggest) 
gr_edit yaxis1.reset_rule 2, tickset(major) ruletype(suggest) 
gr_edit yaxis1.reset_rule , tickset(major) ruletype(none) 
gr_edit yaxis1.reset_rule , tickset(major) ruletype(none) 
gr_edit xaxis1.major.num_rule_ticks = 0
gr_edit xaxis1.edit_tick 1 1 `"Extent of Coup-Proofing"', tickset(major)
gr_edit xaxis1.major.num_rule_ticks = 0
gr_edit xaxis1.edit_tick 1 1 `"Extent of Coup-Proofing"', tickset(major)
gr_edit xaxis1.major.num_rule_ticks = 0
gr_edit xaxis1.edit_tick 2 2 `"Power Consolidation"', tickset(major)
gr_edit xaxis1.major.num_rule_ticks = 0
gr_edit xaxis1.edit_tick 3 3 `"Civilian Control"', tickset(major)
gr_edit xaxis1.major.num_rule_ticks = 0
gr_edit xaxis1.edit_tick 3 3 `"Civilian Control"', tickset(major)
gr_edit legend.subtitle.text = {}
gr_edit legend.subtitle.text.Arrpush Pearson's r
gr_edit legend.subtitle.style.editstyle size(small) editcopy
gr_edit legend.subtitle.style.editstyle size(medsmall) editcopy
gr_edit style.editstyle boxstyle(shadestyle(color(white))) editcopy
gr_edit style.editstyle boxstyle(linestyle(color(white))) editcopy


 
graph save heat_plot_extent_coup_proofing_exclude_figure2appendix, replace






******** Table 2 Appendix: the Effects of Coup-Proofing on Military Coups, 1965—2005 (Included GDP and Democracy Control)

use psrm_irt_replication_1312, clear


eststo clear


eststo: logit failcoup_any_powell mean_coup_proofing  ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 , vce(cluster ccode)


eststo: logit succoup_any_powell mean_coup_proofing   ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3  , vce(cluster ccode)


eststo: logit failcoup_any_powell mean_coup_proofing  ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode , vce(cluster ccode)


eststo: logit succoup_any_powell mean_coup_proofing  ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode  , vce(cluster ccode)



eststo: reg failcoup_any_powell mean_coup_proofing  ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 , vce(cluster ccode)


eststo: reg succoup_any_powell mean_coup_proofing  ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3  , vce(cluster ccode)


eststo: reg failcoup_any_powell mean_coup_proofing  ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode , vce(cluster ccode)


eststo: reg succoup_any_powell mean_coup_proofing  ln_rgdppc_exp demo_nr time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode  , vce(cluster ccode)


	

esttab using table2_appendix.tex, replace booktabs alignment(l) width(1.05\hsize) ///
b(a2) se scalars("N Obs." "ll Log Lik." ) ///
title(My Table) addn(name clusters) star(* 0.10 ** 0.05 *** 0.01) // 
 
 



******** Table 3 Appendix: The Effects of Coup-Proofing on Military Coups, 1965—2005 (Exclusion of Foreign, Justice, and Non-Security Cabinet Positions)
 
 
 
use psrm_irt_replication_1312, clear



eststo clear


eststo: logit failcoup_any_powell mean_coup_proofing_exclude time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 , vce(cluster ccode)


eststo: logit succoup_any_powell mean_coup_proofing_exclude   time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3  , vce(cluster ccode)


eststo: logit failcoup_any_powell mean_coup_proofing_exclude   time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode , vce(cluster ccode)


eststo: logit succoup_any_powell mean_coup_proofing_exclude   time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode  , vce(cluster ccode)



eststo: reg failcoup_any_powell mean_coup_proofing_exclude time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 , vce(cluster ccode)


eststo: reg succoup_any_powell mean_coup_proofing_exclude   time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3  , vce(cluster ccode)


eststo: reg failcoup_any_powell mean_coup_proofing_exclude   time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode , vce(cluster ccode)


eststo: reg succoup_any_powell mean_coup_proofing_exclude   time_failcoup_any_powell time_failcoup_any_powell2 time_failcoup_any_powell3 i.ccode  , vce(cluster ccode)


	

esttab using table3_appendix.tex, replace booktabs alignment(l) width(1.05\hsize) ///
b(a2) se scalars("N Obs." "ll Log Lik." ) ///
title(My Table) addn(name clusters) star(* 0.10 ** 0.05 *** 0.01) //

 

 
log close